<?php
/**
 * Created by PhpStorm.
 * User: izbol
 * Date: 2017/3/30
 * Time: 19:58
 */
/*
   程序的配置文件
*/
define('PATH',dirname(__FILE__));
include (PATH.'/core/db.php');
$db=new db();
include (PATH.'/core/input.php');
$input=new input();

//读取数据库的信息
$sql_set="select * from setting";
$set_result=$db->query($sql_set);
//while (true){
//    $row=$set_result->fetch_array(MYSQLI_ASSOC);
//    if($row==false){
//        break;
//    }
//    var_dump($row);
//}
$setting=array();
while ($row=$set_result->fetch_array(MYSQLI_ASSOC)){
    $setting[$row['key']]=$row['val'];
}
?>